public class NameThread extends Thread {
	String name;

	public NameThread(String name) {
		this.name = name;
	}

	public void run() {
		for (int i = 0; i < 5; i++) {
			System.out.println(name);
			try {
				Thread.sleep((long) (200 * Math.random()));
			} catch (Exception e) {
			}
		}
	}
}